home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / snoopdos_source / gui.h < prev    next >
Text File  |  1996-02-16  |  3KB  |  65 lines

  1. /*
  2.  *        GUI.H                                            vi:ts=4
  3.  *
  4.  *      Copyright (c) Eddy Carroll, September 1994.
  5.  *
  6.  *        Constants used when creating the SnoopDos GUI
  7.  */
  8.  
  9. #define IE_SHIFT            (IEQUALIFIER_LSHIFT | IEQUALIFIER_RSHIFT)
  10. #define IE_ALT                (IEQUALIFIER_LALT   | IEQUALIFIER_RALT)
  11. #define IE_CTRL                (IEQUALIFIER_CONTROL)
  12. #define IE_ALL                (IE_SHIFT | IE_ALT | IE_CTRL)
  13.  
  14. #define HELPKEY                0x5F    /* Keyboard raw code for HELP key        */
  15. #define TABKEY                0x42    /* Keyboard raw code for TAB key        */
  16.  
  17. #define DEF_WINDOW_WIDTH    724        /* Default window width                    */
  18. #define DEF_WINDOW_HEIGHT    256        /* Default window height                */
  19.  
  20. #define MAIN_MARGIN            10        /* Minimum margin for main window        */
  21. #define FUNC_MARGIN            20        /* Margin for functions window            */
  22. #define SET_MARGIN            15        /* Margin for settings window            */
  23. #define FORM_MARGIN            15        /* Margin for format window                */
  24.  
  25. #define MAIN_NARROW            0        /* Indexes narrow button width            */
  26. #define MAIN_NARROW_TOGGLE    1        /* Narrow button that toggles            */
  27. #define MAIN_WIDE            2        /* Indexes wide button width            */
  28. #define MAIN_WIDE_INVIS        3        /* As above, but button is invisible    */
  29. #define MAIN_STATUS            4        /* Indexes status line width            */
  30. #define MAIN_NUMWIDTHS        5        /* Number of widths supported            */
  31.  
  32. /*
  33.  *        These next two pairs are for 1:2 and 1:1 aspect screens respectively
  34.  */
  35. #define LO_GADGET_HEIGHT    4        /* Additional height for each gadget    */
  36. #define LO_GADGET_SPACING    10        /* Vert spacing between most gadgets    */
  37.  
  38. #define HI_GADGET_HEIGHT    6        /* Additional height for each gadget    */
  39. #define HI_GADGET_SPACING    12        /* Vert spacing between most gadgets    */
  40.  
  41. #define HSCROLL_SHIFT_JUMP    5        /* # of chars to jump for shift lft/rgt    */
  42. #define VSCROLL_WIDTH        16        /* Width of vertical scroll gadget        */
  43. #define HSCROLL_HEIGHT1        11        /* Height of horz. scroll (1:1)            */
  44. #define HSCROLL_HEIGHT2        9        /* Height of horz. scroll (2:1)            */
  45. #define BOX_LEFT_MARGIN        2        /* Left margin of text inside box        */
  46.  
  47. #define INVIS_LEFT_EDGE        -500    /* Position to make gadget invisible    */
  48.  
  49. #define FBOX_NOSELECT        255        /* No entry selected in format window    */
  50. #define FBOX_SELECTLEFT        127        /* Left box selected in format window    */
  51. #define END_EDITLIST        (-1)    /* Signifies end of format edit list    */
  52.  
  53. #define FORMAT_SELECTED        1        /* Highlight line when outputting it    */
  54. #define FORMAT_UNSELECTED    0        /* Don't highlight line when outputting    */
  55.  
  56. #define FORMAT_LEFTBOX        0        /* Dragging from left box                */
  57. #define FORMAT_RIGHTBOX        1        /* Dragging from right box                */
  58.  
  59. /*
  60.  *        Delay used when briefly highlighting a gadget after a user
  61.  *        presses a keyboard equivalent
  62.  */
  63. #define PRESSGAD_DELAY        5        /* Delay in 50ths of a second            */
  64.  
  65.